package com.boot.main.mapper;

import com.boot.main.entity.ScomAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ScomAddressMapper {
    List<ScomAddress> getAddress(@Param("currentSize") Integer currentSize, @Param("limit") Integer limit, @Param("name") String name, @Param("userId") Long userId);
    ScomAddress getDefaultAddress();
    Integer getTotalCount();
    Integer saveAddress(ScomAddress address);
    Integer updateAddress(ScomAddress address);
    Integer updateAddressDefault();
    Integer deleteAddress(@Param("id") Long id);
}
